-- GENERATED SPELL FOR [Ravenclaw Slave] --


function spell0_1866(pUnit, Event) --@Shared Bondage,n/a--
pUnit:FullCastSpellOnTarget(7761,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1866', 5500, 1)
end

function Sorts_1866(pUnit, Event)
local choix_sorts_1866 = math.random(0, 0)
if choix_sorts_1866 == 0 then
pUnit:RegisterEvent('spell0_1866', 1, 1)
end
end

function mob1866_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1866', math.random(1500, 3000), 1)
end

function mob1866_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1866_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1866_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1866, 1, 'mob1866_Action')
RegisterUnitEvent(1866, 2, 'mob1866_Leave')
RegisterUnitEvent(1866, 3, 'mob1866_Kill')
RegisterUnitEvent(1866, 4, 'mob1866_Die')
